const productionConfig = require("./webpack.config.prod")

module.exports = {
    //引入webpack.config.prod文件
    ...productionConfig,


    //修改 webpack 配置对象
    devServer: {
        port: 8888, // 端口号
        open: true, // 自动打开浏览器
        compress: true, //启动gzip压缩
        liveReload: true, //启动自动更新
        historyApiFallback: true,
        proxy: {
            "/api1": {
                target: "http://127.0.0.1:8181",
                pathRewrite: {
                    "^/api1": ""
                }
            }
        }
    },


    //修改开发环境
    mode: "development",


}